package shiro.com.controller.sc;

import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import shiro.com.basie.controller.BaseController;
import shiro.com.domain.TableDataInfo;
import shiro.com.domain.sc.ScBj;
import shiro.com.service.sc.IScBjService;
/**
 * 【请填写功能名称】Controller
 *
 * @author ruoyi
 * @date 2022-11-22
 */
@RestController
@RequestMapping("/system/bj")
public class ScBjController extends BaseController
{
    @Autowired
    private IScBjService scBjService;

    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("/list")
    public TableDataInfo list(ScBj scBj)
    {
        List<ScBj> list = scBjService.selectScBjList(scBj);
        return getDataTable(list);
    }
//
//    /**
//     * 导出【请填写功能名称】列表
//     */
//    @PreAuthorize("@ss.hasPermi('system:bj:export')")
//    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, ScBj scBj)
//    {
//        List<ScBj> list = scBjService.selectScBjList(scBj);
//        ExcelUtil<ScBj> util = new ExcelUtil<ScBj>(ScBj.class);
//        util.exportExcel(response, list, "【请填写功能名称】数据");
//    }
//
//    /**
//     * 获取【请填写功能名称】详细信息
//     */
//    @PreAuthorize("@ss.hasPermi('system:bj:query')")
//    @GetMapping(value = "/{scBjId}")
//    public AjaxResult getInfo(@PathVariable("scBjId") Integer scBjId)
//    {
//        return success(scBjService.selectScBjByScBjId(scBjId));
//    }
//
//    /**
//     * 新增【请填写功能名称】
//     */
//    @PreAuthorize("@ss.hasPermi('system:bj:add')")
//    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody ScBj scBj)
//    {
//        return toAjax(scBjService.insertScBj(scBj));
//    }
//
//    /**
//     * 修改【请填写功能名称】
//     */
//    @PreAuthorize("@ss.hasPermi('system:bj:edit')")
//    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody ScBj scBj)
//    {
//        return toAjax(scBjService.updateScBj(scBj));
//    }
//
//    /**
//     * 删除【请填写功能名称】
//     */
//    @PreAuthorize("@ss.hasPermi('system:bj:remove')")
//    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
//	@DeleteMapping("/{scBjIds}")
//    public AjaxResult remove(@PathVariable Integer[] scBjIds)
//    {
//        return toAjax(scBjService.deleteScBjByScBjIds(scBjIds));
//    }
}
